home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 31
/
Aminet 31 (1999)(Schatztruhe)[!][Jun 1999].iso
/
Aminet
/
comm
/
news
/
slrn-bin.lha
/
slrn
/
doc
/
tm
/
slrnfuns
/
header.tm
< prev
next >
Wrap
Text File
|
1999-04-27
|
10KB
|
308 lines
\function{collapse_thread}
\synopsis{-}
\usage{Void collapse_thread ()}
\description
This function may be used to collapse the current thread.
\seealso{uncollapse_thread, collapse_threads, is_thread_collapsed}
\done
\function{collapse_threads}
\synopsis{-}
\usage{Void collapse_threads ()}
\description
This function will collapse all threads in the current newsgroup.
\seealso{uncollapse_threads}
\done
\function{extract_article_header}
\synopsis{-}
\usage{String extract_article_header (String h)}
\description
This function returns the article header line specified by the
header keyword \var{h}. If the header does not exist, it returns the
empty string.
\seealso{is_article_visible}
\done
\function{get_grouplens_score}
\synopsis{-}
\usage{Integer get_grouplens_score ()}
\description
This function returns the grouplens score of the current header.
If the header has no grouplens score, or if grouplens support has
not been enabled, 0 will be returned.
\seealso{}
\done
\function{get_header_flags}
\synopsis{-}
\usage{Integer get_header_flags ()}
\description
This functions returns the flags for the current header. This
integer is a bitmapped value whose bits are defined by the following
constants:
#v+
HEADER_READ : set if header is marked as read
HEADER_TAGGED : set if header has `*' tag
HEADER_HIGH_SCORE : set if header has high score
HEADER_LOW_SCORE : set if header has low score
#v-
\seealso{set_header_flags}
\done
\function{get_header_score}
\synopsis{-}
\usage{Integer get_header_score ()}
\description
This functions returns the score for the current header.
\seealso{set_header_score}
\done
\function{get_header_tag_number}
\synopsis{-}
\usage{Integer get_header_tag_number ()}
\description
This function returns the value of the numerical tag associated
with the current header. If the header has no numerical tag, zero
is returned.
\seealso{}
\done
\function{goto_num_tagged_header}
\synopsis{-}
\usage{Integer goto_num_tagged_header (Integer n)}
\description
This function causes the header with numerical tag \var{n} to become the
current header. It returns 1 upon success or 0 upon failure.
\seealso{header_down, get_header_flags, call}
\done
\function{header_down}
\synopsis{-}
\usage{Integer header_down (Integer n)}
\description
The function moves the current position down \var{n} headers. It
returns the number that was actually moved.
\seealso{header_up}
\done
\function{header_next_unread}
\synopsis{-}
\usage{Intger header_next_unread ()}
\description
Goto next unread header. The function returns one upon success or
zero upon failure.
\seealso{header_down}
\done
\function{header_up}
\synopsis{-}
\usage{header_up ()}
\description
The function moves the current position up \var{n} headers. It
returns the number that was actually moved.
\seealso{header_down}
\done
\function{is_thread_collapsed}
\synopsis{-}
\usage{Integer is_thread_collapsed ()}
\description
If the current header is the start of a collapsed thread, this
function will return a non-zero value. If the thread is expanded,
zero will be returned.
\seealso{collapse_thread}
\done
\function{locate_header_by_msgid}
\synopsis{Goto a header of a specified message-id}
\usage{Int_Type locate_header_by_msgid (String_Type msgid, Int_Type qs)}
\description
The \var{locate_header_by_msgid} function may be used to set the
current header to one whose message-id is given by \var{msgid}. If
the second parameter \var{qs} is non-zero, then the header will be
retrieved from the server if it is not in the current list of
headers. The function returns \var{1} if an appropriate header was
found, or \var{0} otherwise.
\example
One possible use of this function is to mark the current position
in the header list and return to that position later, e.g.,
#v+
% Save the current position
variable msgid = extract_article_header ("Message-Id");
.
.
% Return to previous position.
() = locate_header_by_msgid (msgid);
#v-
\done
\function{next_tagged_header}
\synopsis{-}
\usage{Integer next_tagged_header ()}
\description
This function moves the current header position to the next \exmp{*}
tagged header. It returns non-zero upon success or zero upon
failure.
\seealso{prev_tagged_header, goto_num_tagged_header, header_up, header_down}
\done
\function{prev_tagged_header}
\synopsis{-}
\usage{Integer prev_tagged_header ()}
\description
This function moves the current header position to the previous `*'
tagged header. It returns non-zero upon success or zero upon
failure.
\seealso{next_tagged_header, goto_num_tagged_header, header_up, header_down}
\done
\function{re_bsearch_author}
\synopsis{-}
\usage{Integer re_bsearch_author (String regexp)}
\description
Search backward for header whose author matches regular expression
\var{regexp}. If successful, it returns 1 and the current header is set
to the matching header. It returns 0 upon failure.
\seealso{re_fsearch_author, re_fsearch_subject}
\done
\function{re_bsearch_subject}
\synopsis{-}
\usage{Integer re_bsearch_subject (String regexp)}
\description
Search backward for header whose subject matches regular expression
\var{regexp}. If successful, it returns 1 and the current header is set
to the matching header. It returns 0 upon failure.
\seealso{re_fsearch_author, re_bsearch_subject}
\done
\function{re_fsearch_author}
\synopsis{-}
\usage{Integer re_bsearch_author (String regexp)}
\description
Search forward for header whose author matches regular expression
\var{regexp}. If successful, it returns 1 and the current header is set
to the matching header. It returns 0 upon failure.
\seealso{re_bsearch_author, re_fsearch_subject}
\done
\function{re_fsearch_subject}
\synopsis{-}
\usage{Integer re_fsearch_subject (String regexp)}
\description
Search forward for header whose subject matches regular expression
\var{regexp}. If successful, it returns 1 and the current header is set
to the matching header. It returns 0 upon failure.
\seealso{re_fsearch_author, re_bsearch_subject}
\done
\function{set_header_display_format}
\synopsis{Set the nth header display format}
\usage{Void set_header_display_format (Int_Type nth, String_Type fmt)}
\description
The \var{set_header_display_format} function may be used to set the
\var{nth} header display format to \var{fmt}. One may
interactively toggle between the formats via the
\var{toggle_header_formats} keybinding.
The generic format specifier begins with the \exmp{%} character and must
be of the form:
#v+
%[-][w]x
#v-
where the brackets indicate optional items. Here, \em{w} is a width
specifier consisting of one or more digits. If the minus sign (-)
is present, the item will be right justified, otherwise it will be
left justified. The item specifier \em{x} is required and, depending
on it value, has the following meaning:
#v+
s : subject
S : score
r : author real name
f : from header
G : Group lens score
l : Number of lines
n : server number
d : date
t : thread tree
F : flags (read/unread, `*' and `#' tags, header number)
% : percent character
g : goto a specified column
#v-
Thus, \exmp{"%F%-5l:%t%s"} indicates that the header window will contain
the, in order: the flags, the number of lines the article contains
right justified in a 5 character field, a `:', the tree, and the
subject.
The \var{g} format specifier must be preceeded by a number that
indicates the next write should take place at the specified column.
If the column number is negative, then the column is interpreted as
an offset from the right side of the display. For example,
\exmp{%-24g%f} indicates that then \em{From} header is to
be written out 24 columns from the right edge of the window.
\seealso{set_visible_headers}
\done
\function{set_header_flags}
\synopsis{-}
\usage{Void set_header_flags (Integer flags)}
\description
This fu